package com.jilefojing.beans.pojos.enhanced;

import java.util.List;

import com.jilefojing.beans.pojos.Dictionary;
import com.jilefojing.beans.pojos.enhanced.base.BaseEnhanced;

/**
 * 
 * @author jgshun
 * 
 */
public class EnhancedDictionary extends BaseEnhanced {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2080077593437845955L;

	public EnhancedDictionary(Dictionary dictionary) {
		this.msg = dictionary.getMsg();
		if (dictionary.getId() != null) {
			this.id = dictionary.getId();
		}
		this.node = dictionary.getNode();
		this.nodeName = dictionary.getNodeName();

		if (dictionary.getParentId() != null) {
			EnhancedDictionary _parentEnhancedDictionary = new EnhancedDictionary();
			_parentEnhancedDictionary.setId(dictionary.getParentId());
			this.parentEnhancedDictionary = _parentEnhancedDictionary;
		}
	}

	public EnhancedDictionary() {
		super();
	}

	private long id;

	/**
	 * 节点key
	 */
	private String node;

	/**
	 * 节点名称
	 */
	private String nodeName;

	/**
	 * 父节点id
	 */
	private EnhancedDictionary parentEnhancedDictionary;

	/**
	 * 描述
	 */
	private String msg;

	/**
	 * 子节点
	 */
	private List<EnhancedDictionary> childEnhancedDictionaries;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getNode() {
		return node;
	}

	public void setNode(String node) {
		this.node = node;
	}

	public String getNodeName() {
		return nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	public EnhancedDictionary getParentEnhancedDictionary() {
		return parentEnhancedDictionary;
	}

	public void setParentEnhancedDictionary(EnhancedDictionary parentEnhancedDictionary) {
		this.parentEnhancedDictionary = parentEnhancedDictionary;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public List<EnhancedDictionary> getChildEnhancedDictionaries() {
		return childEnhancedDictionaries;
	}

	public void setChildEnhancedDictionaries(List<EnhancedDictionary> childEnhancedDictionaries) {
		this.childEnhancedDictionaries = childEnhancedDictionaries;
	}

}